lib/gpg-verify: Add an OstreeGpgError error domain
authorPhilip Withnall <withnall@endlessm.com>
Wed, 9 Aug 2017 13:35:53 +0000 (14:35 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 10 Aug 2017 13:38:40 +0000 (13:38 +0000)
commit75bce24cb9417f9b8111ed689d3d9c2f4bec154f
tree1ea0c6fd2afcb6d6fa942f5dee912155d3b9f310
parentf1102763dfda1d1acc0352b66cf9f309d28d6b1a
lib/gpg-verify: Add an OstreeGpgError error domain

Add a new error domain for GPG signing/verification errors, and use it
throughout libostree for describing verification errors. This replaces
various uses of G_IO_ERROR_FAILED, and one instance of
G_IO_ERROR_NOT_FOUND (for which some code in ot-builtin-show.c had to be
changed to ensure it was still handled correctly).

The use of a separate error domain allows failures in GPG operations to
be handled separately from network failures (where the summary file
could not be found to be downloaded, for example) or timeouts.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1064
Closes: #1071
Approved by: mbarnes
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-gpg-verify-result.c
src/libostree/ostree-gpg-verify-result.h
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.c
src/ostree/ot-builtin-show.c